package day_2022_12_to_3.day;

/**
 * @author haomin
 * @date 2022/12/09 22:12
 **/
public class Day12_9_Num1780 {
    class Solution {
        public boolean checkPowersOfThree(int n) {
            while(n != 0) {
                if(n % 3 == 2) return false;
                n /= 3;
            }
            return true;
        }
    }
}